package com.shycloud.mido.music.feign;

import com.shycloud.mido.common.core.constant.SecurityConstants;
import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.music.domain.MisMusicCollection;
import com.shycloud.mido.music.domain.MisUserBuyCollection;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("shycloud-new-music-biz")
public interface MusicRemoteService {

	@GetMapping("/musicCollection/getCollByMusicIdFeign")
	MisMusicCollection getCollByMusicIdFeign(@RequestParam("musicId") Integer musicId);

	@RequestMapping(method = RequestMethod.GET, value = "/star/batchStarRank")
	R batchStarRank(@RequestHeader(SecurityConstants.FROM) String from);

	@GetMapping("/musicCollection/updateIsShowByMemberId")
	R updateIsShowByMemberId(@RequestParam("memberId") String memberId);

}
